package com.neu.service.wty;


import com.neu.dao.wty.MgrDao;

import java.util.List;
import java.util.Map;

public class MgrService {
    private MgrDao mgrdao;
    public MgrService(){
        mgrdao = new MgrDao();
    }

    public Map<String,Object> checkLogin(String u_no,String u_pwd){
        Map<String,Object> map=null;
        try {
            List<Map<String,Object>> list =mgrdao.checkLogin(u_no,u_pwd);
            map=list.get(0);
/*            //打印map中的数据 发布时按需删除
            System.out.println(map.toString());*/
        } catch (Exception e) {
            e.printStackTrace();
        }
        return map;
    }
}
